home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / QuickPlot / Source / PlotView.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  74 lines

  1.  
  2. /*    Program By Fred Richards, Copyright 1990.    */
  3. /*                            */
  4. /*    This software is provided free of charge    */
  5. /*    and without warranty.  The source code may    */
  6. /*    be distributed freely provided this copyright    */
  7. /*    notice remains in tact.                */
  8.  
  9.  
  10. #import <appkit/appkit.h>
  11.  
  12. @interface PlotView:View
  13. {
  14.     id        plotParam;    // The Plot Object containing
  15.                 // all the necessary parameters (and data)
  16.     NXPoint    pointOffset;    // Distance from point of box, triangle, etc
  17.                 // corner or perimeter
  18.     NXPoint    pointSize;    // The length of a box, cross, triangle, etc.
  19. }
  20.  
  21. // Initialization methods:
  22.  
  23. // Attach to the Plot object
  24.  
  25. - setPlotParam:anObject;
  26.  
  27. // Set up the line width, drawing color and point size
  28.  
  29. - initPlot:sender;
  30.  
  31. // Erase the view
  32.  
  33. - clear:sender;
  34.  
  35. // Set the pen shade (NX_WHITE, NX_LTGRAY, NX_DKGRAY, NX_BLACK)
  36.  
  37. - setDrawColor:(float )color;
  38.  
  39. // Set the point size (and perimeter offset) relative to the View size
  40.  
  41. - setPointSize;
  42.  
  43. // Draw the given data set
  44.  
  45. - drawLines:sender;
  46. - drawPoints:sender;
  47. - drawCrosses:sender;
  48. - drawXs:sender;
  49. - drawBoxes:sender;
  50. - drawTriangles:sender;
  51.  
  52. // Draw an individual point
  53.  
  54. - dotAt:(NXPoint )place;
  55. - crossAt:(NXPoint )place;
  56. - xAt:(NXPoint )place;
  57. - boxAt:(NXPoint )place;
  58. - triangleAt:(NXPoint )place;
  59.  
  60. // Details
  61.  
  62. - border;
  63. - axes;
  64.  
  65. // This is necessary if printPSCode is going to work!
  66.  
  67. - drawSelf:(const NXRect *)rects :(int )rectCount;
  68.  
  69. // This will save just the image's PostScript code to a file
  70.  
  71. - savePSCode:(char *)aFile;
  72.  
  73. @end
  74.